package com.xuanmiao.smsback.service.email;

/**
 * @Author: wangxl
 * @Date: 2019/3/27 16:27
 */
public interface MailService {

    /**
     * 简单的文本邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendSimpleMail(String to, String subject, String content);

    /**
     * html邮件
     * @param to
     * @param subject
     * @param content
     */
    void sendHtmlMail(String to, String subject, String content);

    /**
     * 带附件的邮件
     * @param to
     * @param subject
     * @param content
     * @param filePath
     */
    void sendAttachemntMail(String to, String subject, String content, String filePath);

    /**
     * 嵌入静态资源的邮件
     * @param to
     * @param subject
     * @param content
     * @param rscPath
     * @param rscId
     */
    void sendInlineResourceMail(String to, String subject, String content, String rscPath, String rscId);

//    /**
//     * 发送模板邮件
//     * @param to
//     * @param subject
//     * @param username
//     */
//    void sendTemplateMail(String to, String subject, String username,String emailTemplateName);
}
